package com.yanqu.road.entity.activity.businessreunion;

import com.yanqu.road.entity.DataObject;

import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

/**
 * @author ：zfr
 * @date ：2022/4/18 11:16
 */
public class BusinessReunionData extends DataObject {
    private long playerId;
    private int activityId;
    private String recallCode;
    private List<RecallUserInfo> recallUserInfos = new ArrayList<>();
    private int alreadyGetIntegral;


    public long getPlayerId() {
        return playerId;
    }

    public void setPlayerId(long playerId) {
        this.playerId = playerId;
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public String getRecallCode() {
        return recallCode;
    }

    public void setRecallCode(String recallCode) {
        this.recallCode = recallCode;
    }

    public List<RecallUserInfo> getRecallUserInfos() {
        return recallUserInfos;
    }

    public void setRecallUserInfos(List<RecallUserInfo> recallUserInfos) {
        if (!Objects.equals(this.recallUserInfos, recallUserInfos)) {
            this.recallUserInfos = recallUserInfos;
            setUpdateOption();
        }

    }

    public void addRecallUserInfo(RecallUserInfo recallUserInfo) {
        this.recallUserInfos.add(recallUserInfo);
        setUpdateOption();
    }

    public int getAlreadyGetIntegral() {
        return alreadyGetIntegral;
    }

    public void setAlreadyGetIntegral(int alreadyGetIntegral) {
        if (this.alreadyGetIntegral != alreadyGetIntegral) {
            this.alreadyGetIntegral = alreadyGetIntegral;
            setUpdateOption();
        }
    }
}
